package br.com.bmb.monitorimoveis.servico;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import br.com.bmb.monitorimoveis.entidade.InfoColeta;
import br.com.bmb.monitorimoveis.persistencia.IAbstractDAO;
import br.com.bmb.monitorimoveis.persistencia.IInfoColetaDAO;
import br.com.bmb.monitorimoveis.servico.impl.AbstractService;

@Service
public class InfoColetaService extends AbstractService<InfoColeta, Long> implements IInfoColetaService {

	@Autowired
	private IInfoColetaDAO dao;
	
	@Transactional
	public void atualizar(InfoColeta infoColeta) {
		dao.atualizar(infoColeta);
	}

	@Transactional
	public List<InfoColeta> listarPendentes() {
		return dao.listarPendentes();
	}
	@Override
	protected IAbstractDAO<InfoColeta, Long> getDAO() {
		return dao;
	}

	
}
